From 2d1a20afacb304b6173493fcc3e4f359211f8053 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Fri, 2 Jun 2006 08:59:54 +0000 Subject: [PATCH] fixed some compile warnings --- ChangeLog | 4 ++++ extensions/gggl.c | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9d94d3..0b5a290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-06-02 Øyvind Kolås + + * extensions/gggl.c: (table_init): Fix some compile warnings. + 2006-06-02 Øyvind Kolås I'm not entirely sure about installing babl-classes.h like this, it diff --git a/extensions/gggl.c b/extensions/gggl.c index bf3fe83..02ae855 100644 --- a/extensions/gggl.c +++ b/extensions/gggl.c @@ -126,8 +126,8 @@ table_init (void) for (i = 0; i < 256; i++) { float f = table_8_F[i]; - unsigned short *hi = ((unsigned short *) &f); - unsigned short *lo = ((unsigned short *) &f); + unsigned short *hi = ((unsigned short *)(void*) &f); + unsigned short *lo = ((unsigned short *)(void*) &f); *lo = 0; table_F_8[(*hi)] = i; } @@ -929,7 +929,7 @@ conv_rgbaF_rgbA16 (unsigned char *src, unsigned char *dst, long samples) } return samples; } - +#if 0 static INLINE long conv_rgbaF_rgb8 (unsigned char *src, unsigned char *dst, long samples) { @@ -954,6 +954,7 @@ conv_rgbaF_rgb8 (unsigned char *src, unsigned char *dst, long samples) } return samples; } +#endif static INLINE long conv_rgbaF_g8 (unsigned char *src, unsigned char *dst, long samples) -- 2.30.2